package chp06.homework;

public class Home2 {

    public static void main(String[] args) {
        //鸡兔同笼
        //暴力破解
        //x + y =35
        //2x + 4y = 94
        for(int chookNum = 0; chookNum <= 35;chookNum++){
            int rabbitNum = 35 - chookNum;
            if(chookNum * 2 + rabbitNum * 4 == 94) {
                System.out.println("鸡:" + chookNum + "\t兔:" + rabbitNum);
            }
        }
    }
}
